package com.xbongbong.pro.product.pojo;

import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.pro.product.pojo.vo.ChildProductVO;
import lombok.Getter;
import lombok.Setter;

import java.util.List;
import java.util.Map;

/**
 * 产品关联仓库保存
 *
 * @author feng.zheng
 * @version v1.0
 * @date 2019/10/12 10:08
 * @since v1.0
 */
@Getter
@Setter
public class ProductWithWarehousePojo extends BaseDTO {
    /**
     * 公司id
     */
    private String corpid;
    /**
     * 子产品
     */
    private ChildProductVO childProductVO;
    /**
     * 仓库Map
     */
    private Map<Long, String> warehouseNameMap;
    /**
     * 产品id
     */
    private Long productId;
    /**
     * 库存预警
     */
    private List<StockNotifyPojo> stockNotifyPojoList;
    /**
     * 更新成本
     */
    private Boolean updateCost;
    /**
     * 父成本
     */
    private Double parentCost;
    /**
     * 从beforeSave传过来的
     */
    private ProductWarehouseSavePojo productWarehouseSavePojo;

    public ProductWithWarehousePojo(String corpid, ChildProductVO childProductVO, Map<Long, String> warehouseNameMap, Long productId, List<StockNotifyPojo> stockNotifyPojoList, Boolean updateCost, Double parentCost) {
        this.corpid = corpid;
        this.childProductVO = childProductVO;
        this.warehouseNameMap = warehouseNameMap;
        this.productId = productId;
        this.stockNotifyPojoList = stockNotifyPojoList;
        this.updateCost = updateCost;
        this.parentCost = parentCost;
    }
}
